package com.totobox.apps.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.totobox.apps.R;
import com.totobox.apps.common.Util;

public class TotoNoticeDetailActivity extends BasicActivity {
	
	private TextView title;
	private TextView notice_regdt;
	private TextView content;
	
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.toto_notice_detail);
        
        super.initTitle();
        
        //하단 메뉴 세팅
        super.setFooterMenu(this);
        
        Intent it = getIntent();
        
        title = (TextView)findViewById(R.id.notice_title);
        content = (TextView)findViewById(R.id.notice_content);
        notice_regdt = (TextView)findViewById(R.id.notice_regdt);
        
        title.setText(it.getStringExtra("vcTitle"));
        
        
        String regDate = it.getStringExtra("dtRegDate");
		regDate = Util.trim(regDate.substring(0,10)).replaceAll("-", "/");
		
		notice_regdt.setText(regDate);
		
        content.setText(it.getStringExtra("vcContent"));
    }

	@Override
	public void onClick(View v) {
		if(v == btn_title_left){
			finish();
		}
	}
    
    
}